<template>
	<view class="taskList">
		<!-- 内容通栏 -->
		<uni-card 
			v-for="(item,index) in taskList"
			:keys="item.taskId"
			title="推荐指数:***" 
			thumbnail="https://img-cdn-qiniu.dcloud.net.cn/new-page/uni.png" 
			:extra="item.createTime" 
			:note="item.taskMoney"
			@click="toTaskDetail(item)">
		   {{item.taskName}}
		</uni-card>
	</view>
</template>

<script>
	import uniCard from '@/components/uni-card/uni-card.vue'
	export default {
		props:['taskList'],
	    components: {uniCard},
		methods:{
			toTaskDetail(task){
				uni.navigateTo({
					url:'../../components/taskDetail/taskDetail?data='+JSON.stringify(task)
				})
			}
		}
	}
</script>

<style lang="scss">
	
</style>
